<template>
  <div class="h5-wrapper">
    <div class="content">
      <router-view></router-view>

    </div>
    <nav class="tabbar">
      <van-tabbar v-model="active" inactive-color="#88888">
        <van-tabbar-item icon="home-o"
          ><router-link to="/shouye/index">首页</router-link></van-tabbar-item
        >
        <van-tabbar-item icon="search"
          ><router-link to="/shouye/find">找房</router-link></van-tabbar-item
        >
        <van-tabbar-item icon="friends-o"
          ><router-link to="/shouye/ask">咨询</router-link></van-tabbar-item
        >
        <van-tabbar-item icon="setting-o"
          ><router-link to="/shouye/my">我的</router-link></van-tabbar-item
        >
      </van-tabbar>
    </nav>
  </div>
</template>

<script>
export default {
  data () {
    return {
      active: 0,
      value: ''
    }
  },
  methods: {

  }
}
</script>

<style>
.van-icon{
  color:#888888 ;
}
.van-tabbar-item--active {
    color: #06b069 !important;
    background-color: #fff;
}
body {
  margin: 0;
  padding: 0;
}
</style>
<style lang="less" scoped>
.h5-wrapper {
  .content {
    margin-bottom: 51px;
  }
  .tabbar {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 50px;
    line-height: 50px;
    text-align: center;
    display: flex;
    background: #fff;
    border-top: 1px solid #e4e4e4;
    a {
      flex: 1;
      text-decoration: none;
      font-size: 14px;
      color: #888888;
      -webkit-tap-highlight-color: transparent;
      &.router-link-active {
        color: #06b069;
      }
    }
  }
}
</style>
